<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/comm/common.jsp" %>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>权限列表</title>
<link rel="stylesheet" href="<%=path %>/css/pintuer.css">
<link rel="stylesheet" href="<%=path %>/css/admin.css">
<script src="<%=path %>/js/jquery.js"></script>
<script src="<%=path %>/js/pintuer.js"></script>
</head>
<body>
<form method="post" action="<%=path%>/system/Right_listRight.action" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">权限管理 </strong> </div>
    <div class="padding border-bottom">
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;"><input type="checkbox" name="checkall" id="checkall">
        <label for="checkall"></label></th>
        <th>角色编号</th>
        <th>权限编号</th>
        <th>权限名称</th>
        <th>操作</th>
      </tr>
      <s:iterator id="item" value="pageList.dataSets" status="i" >
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="ids" value="${id}" />
           ${i.index+1}</td>
            <td>${role_no}</td>
          <td>${right_no}</td>
          <td>${right_mean}</td>
          <td><div class="button-group"> 
            <s:if test="%{if_user==0}">
          <a class="button border-main" href="<%=path%>/system/Right_on.action?role_no=${role_no}&right_no=${right_no}"><span class="icon-edit"></span>使用</a>
          </s:if><s:else>
           <a class="button border-red" href="<%=path%>/system/Right_off.action?role_no=${role_no}&right_no=${right_no}"  ><span class="icon-trash-o"></span>停用</a> 
           </s:else>
           </div></td>
        </tr>
        </s:iterator>
    </table>
  </div>
  <s:if test="%{#attr.pageList!=null}" >
    <div class="pagelist">
      共有${pageList.total}条记录，当前显示第${pageList.page}页
      <s:if test="%{#attr.pageList.hasPre}">
        <a href="<%=path %>/system/Right_listRight.action?page=${pageList.page-1}">上一页</a>
      </s:if>
      <s:else> <a href="<%=path %>/system/Right_listRight.action?page=1">上一页</a></s:else>
      <s:if test="%{#attr.pageList.hasNext}">
        <a href="<%=path %>/system/Right_listRight.action?page=${pageList.page+1}">下一页</a>
      </s:if>
     
        <a href="<%=path %>/system/Right_listRight.action?page=${pageList.totalPage}">尾页</a>
      </div>
  </s:if>
</form>
</body>
</html>
